//
//  FSHomeViewController.h
//  FSiOSClient
//
//  Created by purlible on 2024/8/22.
//

#import "FSBaseViewController.h"
#import <WebKit/WebKit.h>
#import "FSRecordModel.h"


NS_ASSUME_NONNULL_BEGIN

@interface FSHomeViewController : FSBaseViewController

@property(nonatomic, strong) NSMutableArray *peripheralDataArray;

@property(nonatomic, strong) BabyBluetooth * baby;

@property (strong, nonatomic) WKWebView *webView;

/** 资源包位置 */
@property(nonatomic,weak)NSString *baseURL;
///蓝牙开关状态
@property (nonatomic, assign)NSInteger  bluetoothState; //0 未打开 1已打开
///蓝牙连接状态
@property (nonatomic, assign)NSInteger  bluetoothConnectState; //0 未连接 1已连接

///蓝牙列表
@property(strong,nonatomic)UITableView * table;
///蓝牙服务
@property __block NSMutableArray *services;
///蓝牙特征
@property(strong,nonatomic)CBCharacteristic * characteristic;
///特征通知
@property(strong,nonatomic)CBCharacteristic * characteristicNotify;
///当前外设
@property(strong,nonatomic)CBPeripheral *currPeripheral;

///记录蓝牙设备状态
@property (nonatomic, strong)FSRecordModel * deviceModel;
///连接的设备编号
@property (nonatomic, strong)NSString * peripheralCode;

@end

NS_ASSUME_NONNULL_END
